// 集中管理组件引入和映射关系
import overview from './overview/overview.vue';

import TCM2280 from './TCM2280/TCM2280.vue'
import Output2280 from './TCM2280/outputAnalysis.vue'
import Visualization2280 from './TCM2280/prodAnalysisViz.vue'
import Hour2280 from './TCM2280/outputHour.vue'
import Standard2280 from './TCM2280/steelStandard.vue'
import StandardCustomer2280 from './TCM2280/steelStandardCustomer.vue'

import CAL1630 from './CAL1630/CAL1630.vue';

// import CGL1870 from './index/CGL1870.vue';
import CGL1870 from './CGL1870/CGL1870.vue'
import Output1870 from './CGL1870/outputAnalysis.vue';
import Visualization1870 from './CGL1870/prodAnalysisViz.vue';

import QualityDaily from './quality/QualityDaily.vue';
import OCMain from './quality/onecold/OCMain.vue';
import OCQuality from './quality/onecold/OCQuality.vue';
import OCCarboard from './quality/onecold/OCCarboard.vue';
import OCSource from './quality/onecold/OCSource.vue';
import Threecold from './quality/threecold/threecold.vue';
import QualityProblem from './quality/qualitywrite/qualityproblem.vue';
import QualityDescription from './quality/qualitywrite/situationDescribe.vue';
import QualityCompletion from './quality/qualitywrite/mainCompletion.vue';
import Highend from './quality/highend.vue';

import Benefit from './customized/benefit/productionEfficiency.vue';
import ParamMain from './customized/processParameter/overview.vue'
import ParamRate from './customized/processParameter/rate.vue'
import ParamDetail from './customized/processParameter/detail.vue'
import ParamInput from './customized/processParameter/processParamInput.vue'
import ContractMain from './customized/contractTracking/hostFactory.vue'
import ContractOverdue from './customized/contractTracking/overdueContract.vue'
import Shutdown2280 from './customized/shutdownStatistics/shutdownStatistics2280.vue';
import Shutdown1630 from './customized/shutdownStatistics/shutdownStatistics1630.vue';
import Shutdown2150 from './customized/shutdownStatistics/shutdownStatistics2150.vue';
import Shutdown1870 from './customized/shutdownStatistics/shutdownStatistics1870.vue';
import workRate from './customized/shutdownStatistics/stdOperationRateList.vue';

  export const componentsMap = {
    // 总览
    overview,

    // 酸轧
    TCM2280,
    Output2280,
    Visualization2280,
    Hour2280,
    Standard2280,
    StandardCustomer2280,

    // 连退1630
    CAL1630,

    // 连退2150

    // 镀锌1870
    CGL1870,
    Output1870,
    Visualization1870,

    //质量总览
    QualityDaily, // 质量日报
    OCMain, // 一冷-主体指标完成情况
    OCQuality, // 一冷-质量问题情况
    OCCarboard, // 一冷-汽车板生产情况
    OCSource, // 一冷-原料质量情况
    Threecold, // 三冷
    QualityProblem, // 质量填报-质量问题情况
    QualityDescription, // 质量填报-情况说明
    QualityCompletion, // 质量填报-主体完成指标
    Highend, // 冷轧高端报表


    //个性化（自定义）报表customized
    Benefit,// 生产效益
    ParamMain, // 工艺参数-总览
    ParamRate, // 工艺参数-工艺参数符合率
    ParamDetail, // 工艺参数-工艺参数明细
    ParamInput, // 工艺参数-工艺参数人工录入
    ContractMain, // 合同跟踪-主机厂
    ContractOverdue, // 合同跟踪-逾期合同
    Shutdown2280, // 停机统计-2280
    Shutdown1630, // 停机统计-1630
    Shutdown2150, // 停机统计-2150
    Shutdown1870, // 停机统计-1870
    workRate // 停机统计-标准作业率
  };

  // 菜单index与面包屑路径的映射表（根据菜单层级配置）
  export const menuBreadcrumbMap = {
    // 一级菜单
    '0': ['报表'],
    'overview': ['总览'],
    
    // 酸轧2280子菜单
    'TCM2280': ['酸轧2280', '班组报表'],
    'Output2280': ['酸轧2280', '产量分析'],
    'Visualization2280': ['酸轧2280', '可视化'],
    'Hour2280': ['酸轧2280', '小时产量分析'],
    'Standard2280': ['酸轧2280', '钢种宽厚分析'],
    'StandardCustomer2280': ['酸轧2280', '客户钢种宽厚分析'],
    
    // 连退1630子菜单
    'CAL1630': ['连退1630', '班组报表'],
    'Output1630': ['连退1630', '产量分析'],
    'Visualization1630': ['连退1630', '可视化'],
    
    // 连退2150子菜单
    'CAL2150': ['连退2150', '班组报表'],
    'Output2150': ['连退2150', '产量分析'],
    'Visualization2150': ['连退2150', '可视化'],
    
    // 镀锌1870子菜单
    'CGL1870': ['镀锌1870', '班组报表'],
    'Output1870': ['镀锌1870', '产量分析'],
    'Visualization1870': ['镀锌1870', '可视化'],
    
    // 质量总览子菜单
    'QualityDaily': ['质量总览', '质量日报'],
    'OCMain': ['质量总览', '一冷', '主体指标完成情况'],
    'OCQuality': ['质量总览', '一冷', '质量问题情况'],
    'OCCarboard': ['质量总览', '一冷', '汽车板生产情况'],
    'OCSource': ['质量总览', '一冷', '原料质量情况'],
    'Threecold': ['质量总览', '三冷'],
    'QualityProblem': ['质量总览', '质量填报', '质量问题情况'],
    'QualityDescription': ['质量总览', '质量填报', '情况说明'],
    'QualityCompletion': ['质量总览', '质量填报', '主体完成指标'],
    'Highend': ['质量总览', '冷轧高端报表'],
    
    // 定制报表子菜单
    'Benefit': ['定制报表', '生产效益'],
    'ParamMain': ['定制报表', '工艺参数', '总览'],
    'ParamRate': ['定制报表', '工艺参数', '符合率'],
    'ParamDetail': ['定制报表', '工艺参数', '明细'],
    'ParamInput': ['定制报表', '工艺参数', '人工录入'],
    'ContractMain': ['定制报表', '合同跟踪', '主机厂'],
    'ContractOverdue': ['定制报表', '合同跟踪', '逾期合同'], // 示例需求
    'Shutdown2280': ['定制报表', '停机明细统计', '酸轧2280'],
    'Shutdown1630': ['定制报表', '停机明细统计', '连退1630'],
    'Shutdown2150': ['定制报表', '停机明细统计', '连退2150'],
    'Shutdown1870': ['定制报表', '停机明细统计', '镀锌1870'],
    'workRate': ['定制报表', '停机明细统计', '标准作业率管理']
  };

// 导出默认组件
export const defaultComponent = overview;